<?php
/**
 * Created by PhpStorm.
 * User: yellow
 * Date: 2019/5/15
 * Time: 11:44
 */

namespace app\common\model;


use think\Model;

class Config extends Model
{

    private static $configGroup = [];

    public function __construct($data = [])
    {
        parent::__construct($data);
        self::$configGroup = [1=>'base'];
    }

    public function getCreateTimeAttr($value){
        return date('Y-m-d H:i', $value);
    }

    public function getGroupTypeAttr($value){
        return self::$configGroup[$value];
    }

}